﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TreeViewXML.aspx.cs" Inherits="AspDataBinding.TreeViewXML" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="float:left">
        <asp:TreeView ID="TreeViewXml" runat="server" OnSelectedNodeChanged="TreeNode_SelectionChanged">
        </asp:TreeView>
        
    </div>
    <div style="float:right">
        <asp:Repeater ID="Repeater1" runat="server" DataSourceID="XmlDataSource">
         <ItemTemplate>
     <%#XPath("PART/MODEL")%><br />
 
         </ItemTemplate>

        </asp:Repeater>
        <asp:XmlDataSource ID="XmlDataSource" runat="server" DataFile="~/parts.xml" 
 XPath="PARTS">
 </asp:XmlDataSource>
    </div>
    </form>
</body>
</html>
